class CreateVariantHasParameterValues < ActiveRecord::Migration
  def change
    create_table :variant_has_parameter_values, :id => false, :force => true do |t|
      t.references :variant, :null => false
      t.references :parameter_value, :null => false
    end

    add_index :variant_has_parameter_values, :variant_id
    add_index :variant_has_parameter_values, :parameter_value_id
  end
end
